FROM openjdk:8u312-oracle
#ARG SERVER_DIR
#WORKDIR /runner
#ENV TZ Asia/Shanghai
#ENV SERVER_PORT 80
#EXPOSE 80

COPY maven/target/*.jar /deployments/server.jar

#RUN chmod +x /deployments/run_command.sh

ENTRYPOINT java -jar \
-XX:+UseG1GC \
-XX:InitialRAMPercentage=75.0 \
-XX:MaxRAMPercentage=75.0 \
-XX:MinRAMPercentage=75.0 \
-Dserver.port=80 \
/deployments/server.jar
